<template>
  <div class="bus-station-left">
    <nanning-screen-border-box :bgImg="bgImg">
      <screen-title>态势统计</screen-title>
      <bus-station-left-top></bus-station-left-top>
      <bus-station-left-mid></bus-station-left-mid>
    </nanning-screen-border-box>
  </div>
</template>

<script lang="ts">
import { Component, Vue } from 'vue-property-decorator'
import busStationLeftTop from './busStationLeftTop/index.vue'
import busStationLeftMid from './busStationLeftMid/index.vue'
@Component({
  name: 'bus-station-left',
  components: {
    busStationLeftTop,
    busStationLeftMid
  }
})
export default class BusStationLeft extends Vue {
  private bgImg: string = require('assets/images/situational-awareness/gongjiaozhan.png')
}
</script>

<style lang="scss" scoped>
.bus-station-left {
  width: 25.47%;
  height: 58%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  animation: fadeInLeft 0.7s linear;
  .top {
    width: 100%;
    height: 18.58%;
    position: relative;
    .top-bg {
      width: 93.3%;
      height: 100%;
      margin-left: 6.7%;
      position: absolute;
      top: 0;
      left: 0;
    }
    .title {
      width: 50%;
      height: 100%;
      margin-left: 50%;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      justify-content: center;
      .num {
        display: block;
        color: #ffffff;
        font-size: 30px;
        font-family: 'PingFang Simple Bold';
      }
      .text {
        display: block;
        font-size: 14px;
        color: rgba(255, 255, 255, 0.76);
        font-family: 'PingFang Regular';
      }
    }
  }
  .pie-chart {
    width: 100%;
    height: 37%;
    position: relative;
    .chart-title {
      position: absolute;
      left: 5%;
      top: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      font-family: 'PingFang Regular';
      font-weight: 500;
      color: #FFFFFF;
      .title-icon {
        display: inline-block;
        width: 10px;
        height: 10px;
        background-color: #23fffc;
        border-radius: 50%;
        margin-right: 4px;
      }
    }
  }
  .bar-chart {
    width: 100%;
    height: 37%;
    position: relative;
    .chart-title {
      position: absolute;
      left: 5%;
      top: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      font-family: 'PingFang Regular';
      font-weight: 500;
      color: #FFFFFF;
      .title-icon {
        display: inline-block;
        width: 10px;
        height: 10px;
        background-color: #23fffc;
        border-radius: 50%;
        margin-right: 4px;
      }
    }
  }
}
</style>
